import os

# API & ServerKey
openai_api_key = os.getenv("OPENAI_API_KEY")
server_chan_keys_env = os.getenv("SERVER_CHAN_KEYS")
if not server_chan_keys_env:
    raise ValueError("环境变量 SERVER_CHAN_KEYS 未设置")
server_chan_keys = server_chan_keys_env.split(",")

# 新闻源定义
rss_sources = {
    "中国财经": {
        "东方财富": "http://rss.eastmoney.com/rss_partener.xml",
        "国家统计局": "https://www.stats.gov.cn/sj/zxfb/rss.xml"
    },
    "海外财经": {
        "华尔街日报 - 市场": "https://feeds.content.dowjones.io/public/rss/RSSMarketsMain",
        "ETF Trends": "https://www.etftrends.com/feed/"
    }
} 